package com.pap.rbac.role.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.rbac.agent.role.dto.RoleTreeNodeVO;
import com.pap.rbac.role.auto.entity.Role;;

public interface RoleMapper extends PapBaseMapper<Role> {
    int deleteByPrimaryKey(String id);

    int selectCountByMap(Map<Object, Object> map);

    List<Role> selectListByMap(Map<Object, Object> map);

    Role selectByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

    int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
    
	// add alexgaoyh

	List<RoleTreeNodeVO> roleTreeJson(@Param("clientLicenseId") String clientLicenseId,
			@Param("globalParentId") String globalParentId);
			
}